/**
* Oxide
*
* Copyright (c) 2011 Dinosaur Kick Pty Ltd, All rights reserved.
*
* This source code is made available under the "Modified BSD" licensing arrangement.
* See license.txt for details.
*/
// ----------------------------------------------------------------------------

root_ptr parse_primaries(void)
{
	root_ptr root = boost::make_shared<root_type>();

	while (m_cursor.skip_empty())
	{
		if (m_cursor->identity == TOK_CLASS)
		{
			root->class_ = parse_class();
		}
		else
		{
			unexpected_token_error(TOK_CLASS);
			m_cursor.advance();
		}
	}

	return root;
}

// ----------------------------------------------------------------------------
